﻿using CommunityToolkit.Mvvm.ComponentModel;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace WPFDemoMVVM.ViewModel
{
    public partial class RadioButtonViewModel :ObservableObject
    {
        [ObservableProperty]
        bool booleanValue;

        [ObservableProperty]
        Fruit selectedFruit;

        [ObservableProperty]
        int selectedNumber = 1;

        [ObservableProperty]
        Vegetable selectedVegetable;


    }

    public enum Fruit
    {
        Apple,
        Banana,
        Melon
    }
    public enum Vegetable
    {
        Carrot,
        Potato,
        Tomato
    }

}
